public class test7 {
    static void main() {
        int[] arr={520,1314,9420,22};
        int min=arr[0];
        for(int i=0;i<arr.length;i++) {
            if(arr[i]<min) {
                min=arr[i];
            }
        }
        System.out.println(min);
    }
}
